class MAddress {
  static String tableName = "MAddress";
  static String sql =
      "create table $tableName(id integer primary key,address text,private text,mnemonic text)";

  String address;
  String private;
  String mnemonic;
  int id;
  


  Map<String, dynamic> toMap() {
    Map map = new Map<String, dynamic>();
    map['address'] = "$address";
    map['private'] = "$private";
    map['mnemonic'] = "$mnemonic";
    map['id'] = id;
    return map;
  }

  static MAddress fromMap(Map<String, dynamic> map) {
    MAddress data = new MAddress();
    data.id = map['id'];
    data.address = "${map['address']}";
    data.private = "${map['private']}";
    data.mnemonic = "${map['mnemonic']}";
    return data;
  }

  static List<MAddress> fromMapList(dynamic mapList) {
    List<MAddress> list = new List(mapList.length);
    for (int i = 0; i < mapList.length; i++) {
      list[i] = fromMap(mapList[i]);
    }
    return list;
  }
}
